package com.hp.system.service.impl;

import com.hp.system.domain.CarType;
import com.hp.system.domain.CarTypeExample;
import com.hp.system.mapper.CarTypeMapper;
import com.hp.system.service.CarTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarTypeServiceImpl implements CarTypeService {
    @Autowired(required = false)
    private CarTypeMapper carTypeMapper;
    @Override
    public List<CarType> showType(Integer belongid) {
        CarTypeExample carTypeExample = new CarTypeExample();
        CarTypeExample.Criteria criteria = carTypeExample.createCriteria();
        criteria.andBelongidEqualTo(belongid);
        return carTypeMapper.selectByExample(carTypeExample);
    }
}
